package joe.works.pluginframework.plugins;

import joe.works.pluginframework.IPlugin;
import joe.works.pluginframework.extensionpoints.StrategyExtensionPoint;

import org.springframework.core.Ordered;

public class StrategyPlugin<Type> implements IPlugin, Ordered {
	private String strategyName;
	private Type strategy;
	private int order = -1;
	
	public String getExtensionPointName() {
		return StrategyExtensionPoint.class.getName();
	}

	public String getStrategyName() {
		return strategyName;
	}

	public void setStrategyName(String strategyName) {
		this.strategyName = strategyName;
	}

	public Type getStrategy() {
		return strategy;
	}

	public void setStrategy(Type strategy) {
		this.strategy = strategy;
	}
	
	public void setOrder(int order) {
		this.order = order;
	}
	
	public int getOrder() {
		return order;
	}
	
}
